package com.snatch.common.utils;

import com.snatch.common.constant.SnatchConstant;

public class SnatchConstantUtil {
	public static String changeMatchTypeName(String matchtype){
		if(SnatchConstant.SNATCH_TYPE_GQ.equals(matchtype)){
			return SnatchConstant.SNATCH_TYPE_GQ_TEXT;
		}else if(SnatchConstant.SNATCH_TYPE_DS.equals(matchtype)){
			return SnatchConstant.SNATCH_TYPE_DS_TEXT;
		}else if(SnatchConstant.SNATCH_TYPE_ZC.equals(matchtype)){
			return SnatchConstant.SNATCH_TYPE_ZC_TEXT;
		}
		return "";
	}
	
	public static String foundSelid(String selid, String name, String thirdSystem) {
		if(SnatchConstant.THIRD_SYSTEM_HG_VALUE.equals(thirdSystem)){
			return thirdSystem+"_"+MD5.getMD5(name);
		}else{
			return thirdSystem+"_"+selid;
		}
		
	}
	
}
